package com.fanco.learn_datastruct_leetcode.designpattern.prototype.deepclone;

import java.io.Serializable;

/**
 * @author qiaowang 2022/2/9
 * 描述
 */
public class DeepCloneableTarget implements Serializable,Cloneable {

    public static final long serialVersionUID = 1L;

    private String cloneName;

    private String cloneClass;

    public DeepCloneableTarget(String cloneName, String cloneClass) {
        this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    // 因为该类的属性
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
